 <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui">

  <h:head></h:head>

  <h:body>
     <h:form id="form" >

        <p:fileUpload fileUploadListener="#{fileUploadController.upload}" allowTypes="/(\.|\/)(txt)$/" sizeLimit="100000" description="Seleccinar Txt"/>

    </h:form>
  </h:body>
</html>